﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Lecturer>" %>
<%@import Namespace="ViewRes"%>
<div>
    <input type="checkbox" value='<%:Model.UserId%>' name="selectedLecturers" />
        <span>
            <img src="<%:Url.Content("~/Content/Icons/lecturer.png")%>" class="mediumIcon" />
            <span class="mediumBoldText">
                <%:Model.FullName%></span> <span class="smallgreytext">(<%:Model.Email%>)</span>
        </span>
         <%
             if (ViewData["LoggedUser"] is Administrator)
             {%>
        <span><a href='<%:Url.RouteUrl("Default",
                                                new {controller = "Lecturers", action = "Edit", id = Model.UserId})%>'
            onclick=" editLecturer(this.href);return false; ">
            <img class="mediumIcon" src="<%:Url.Content("~/Content/Icons/edit.png")%>" title = "<%:SharedStrings.Edit%>"/>
        </a><%--<a href='<%: Url.RouteUrl("Default", new {controller="Lecturers", action="Delete", id=lecturer.UserId}) %>'
            class="deleteLink">
            <img class="mediumIcon" src="<%: Url.Content("~/Content/Icons/delete.png") %>" />
        </a>--%></span>
        <%
             }%>
</div>